home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / sun3.md / stdarg.h < prev    next >
C/C++ Source or Header  |  1990-11-16  |  836b  |  30 lines

  1. /*
  2.  * stdarg.h --
  3.  *
  4.  *    Macros for handling variable-length argument lists for the sun3.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header$
  16.  */
  17.  
  18. #ifndef _STDARG_H
  19. #define _STDARG_H
  20.  
  21. #ifndef _VA_LIST
  22. #define _VA_LIST
  23. typedef char *va_list;
  24. #endif
  25.  
  26. #define va_start(list,lastarg) (list = ((char *) &lastarg + 4))
  27. # define va_end(list)
  28. # define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
  29. #endif /* _STDARG_H */
  30.